package com.xing.statistics.client;


import com.xing.commonutils.R;
import com.xing.statistics.client.Impl.UcenterClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter" ,url = "172.29.12.23:8160" ,fallback = UcenterClientImpl.class)
public interface UcenterClient {

    /**
     * 根据时间，获取那天注册的人数
     *
     * @param day
     * @return
     */
    @ApiOperation("根据时间，获取那天注册的人数")
    @GetMapping("/serviceUcenter/ucenter-member/countRegister/{day}")
    public R countRegister(@PathVariable("day") String day);
}
